% !Mode:: "TeX:UTF-8" 作者: 谭学忠

%%%%%%%%%%%%%%%%%%%%%
%分享请注明出处，勿作商业用途！
%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{gdufe_exam}[2019/09/08 1.0 Guangdong University of Finance and Economics Template for exam]
\LoadClass[zihao=5,a4paper,oneside]{ctexart}

%\setCJKmainfont{SimSun}[AutoFakeBold,ItalicFont=KaiTi]
%        \setCJKsansfont{SimHei}%对应sf无衬线
%        \setCJKmonofont{FangSong}%对应tt打字机

\RequirePackage{tikz}
\RequirePackage{amsfonts,amssymb}
\RequirePackage{amsmath}
\RequirePackage{graphicx, cases, bbding}
\RequirePackage[top=2.54truecm,bottom=2.54truecm,left=3.18truecm,right=3.18truecm,includefoot,xetex]{geometry}

\RequirePackage{fancyhdr,hyperref}
\pagestyle{fancyplain}
\fancyhf{}  %清除以前对页眉页脚的设置
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{-\,\thepage\,-}


\fancypagestyle{plain}
{
\fancyhead{}                                    % clear all header fields
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}                                    % clear all footer fields
\fancyfoot[C]{-\,\thepage\,-}
}


%%设置节编号、标题字体、字号等格式，设置enumerate第二层标签的格式%%%%%%%%%%%%%
\CTEXsetup[number={\bfseries\zihao{5}\chinese{section}、\hskip -12pt},format={\zihao{5}\bfseries}]{section}
\renewcommand{\labelenumii}{(\arabic{enumii})}


%%设置大题题目内容、格式%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\avec}[3]{\ensuremath{#1_{#2},\ldots,#1_{#3}}}
\newcommand{\panduan}[2]{ 判断题（在你认为正确的结论后面打“√”，否则打“×”。每小题 #1 分，共 #2 分）\hfill}
\newcommand{\tiankong}[2]{ 填空题（每小题 #1 分，共 #2 分）\hfill}
\newcommand{\xuanze}[2]{ 选择题（每小题 #1 分，共 #2 分）\hfill}
\newcommand{\jieda}[2]{ 解答题（每小题 #1 分，共 #2 分）\hfill}
\newcommand{\zhengming}[2]{ 证明题（每小题 #1 分，共 #2 分）\hfill}

\newcommand{\SingleChoice}{ 单选题（下列各题只有一个正确答案，请选出来并填在括号里）\hfill}
\newcommand{\BlankFill}{ 填空题（将正确答案填写在横线上）\hfill}
\newcommand{\TrueOrFalse}{ 判断题（在你认为正确的结论后面打“√”，否则打“×”。）\hfill}

%%%%%%%%设置试卷格式%%%%%%%%%%%%%%%%%
\newenvironment{proof}{{\noindent\heiti 证明：}\quad}{\hfill $\square$\par}
\newenvironment{solu}[2][解：]{\noindent #1#2}{\hfill $\square$\par}
%选择项设置
\renewcommand{\arraystretch}{1.05}
\newenvironment{beixuan1}[4]{\begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}llll}
(A)\quad \mbox{#1}&(B)\quad \mbox{#2}&(C)\quad \mbox{#3}&(D)\quad \mbox{#4}}{\end{tabular*}}

\newenvironment{beixuan2}[4]{\begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}ll}
(A)\ \ \mbox{#1}&(B)\ \ \mbox{#2}\\ (C)\ \ \mbox{#3}&(D)\ \ \mbox{#4}}{\end{tabular*}}

\newenvironment{beixuan3}[4]{\begin{tabular*}{0.9\textwidth}{@{\extracolsep{\fill}}l}
(A)\ \ \mbox{#1}\\(B)\ \ \mbox{#2}\\ (C)\ \ \mbox{#3}\\(D)\ \ \mbox{#4}}{\end{tabular*}}
%填空设置
\newcommand{\kong}[1]{\underline{\quad #1 \quad} .}
%\newcommand{\kong}[2][1.5cm]{\underline{#2 \hspace{#1}}.}

\newcommand{\warmtips} {
\vspace*{-3\baselineskip} 
\hfill{\includegraphics[width=6em]{./seal/worm_tips.png}} 
}
\newcommand{\likeseal} {
\vspace*{-4\baselineskip} 
\hfill{\includegraphics[width=6em]{./seal/like_seal.png}} 
}
\endinput
